<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <style >
        body{
            background-color: #ffa5a5;
            animation: 1s heart infinite;
        }
        .div1{
            width: 200px;
            height: 200px;
            background-color: #D5093C;
            /*添加阴影*/
            box-shadow: 0px 0px 70px #D5093C;
        }
        .r1 {
            border-radius: 50%;
            position: absolute;
            top: 227px;
            left: 227px;
        }
        .r2{
            border-radius: 50%;
            position: absolute;
            top: 227px;
            left: 373px;
        }
        .fk{
            position: absolute;
            /*角度旋转*/
            transform: rotate(45deg);
            top: 300px;
            left: 300px;
        }
        /*添加动画效果*/
        @keyframes heart{
            0%{transform: scale(1);}
            50%{transform: scale(1.1);}
            100%{transform: scale(1);}
        }
    </style>
</head>
<body>
<div class="div1 r1"></div>
<div class="div1 r2"></div>
<div class="div1 fk"></div>
</body>
</html>
